Ext.define('Hr.view.depart.ShowPanel',{
    extend:'Ext.panel.Panel',
    alias:'widget.show',
    width:"100%",
    height:'100%',
    layout:'vbox',
    title:'部门信息一览',
    items:[{
        xtype:'grid',
        width:'100%',
        heigth:'100%',
        border:false,
        flex:1,
        id:'grid',
        store:'depart.DepartInfoStore',
        columns:[{
            header:'部门ID',
            flex:1,
            dataIndex:'id',
            hidden:true
        },{
            header:'部门编号',
            flex:1,
            dataIndex:'cd'
        },{
            header:'部门名称',
            flex:1,
            dataIndex:'name'
        },{
            header:'部门负责人',
            flex:1,
            dataIndex:'commander'
        },{
            header:'负责人电话',
            flex:1,
            dataIndex:'phone'
        },{
            header:'负责人联系地址',
            flex:1,
            dataIndex:'address'
        },{
            header:'部门职责描述',
            flex:1,
            dataIndex:'desc'
        },{
            header:'备注',
            flex:1,
            dataIndex:'comment'
        }],
        tbar:[{
            xtype:'textfield',
            id:'textfield'
        },{
            xtype:'combo',
            id:'combo',
            store:'depart.DepartInfoComboStore',
            displayField:'name',
            valueField:'value',
            editable:false
        },{
            icon:'../image/icons/search.png',
            text:'搜寻',
            action:'search'
        },'->',{
           text:'新增',
           action:'add',
           icon:'../image/icons/add.png'
        },{
           text:'修改',
           action:'update',
           disabled:true,
           id:'update',
           icon:'../image/icons/update.png'
        },{
           text:'删除',
           action:'del',
           disabled:true,
           id:'del',
           icon:'../image/icons/del.png'
        }]
    }]
});